<?php
$this->breadcrumbs = array(
    'States' => array('admin'),
    'Manage',
);

$this->menu = array(
    array('label' => 'Manage State', 'url' => array('admin'), 'active' => true),
);

?>

<h1>States</h1>

<?php //echo CHtml::link('Search', '#', array('class' => 'search-button btn')); ?>
<div class="search-form">
    <?php
    $this->renderPartial('_search', array(
        'model' => $model,
    ));
    ?>
</div><!-- search-form -->
<?php
$this->widget('bootstrap.widgets.TbButton', array(
    'label' => 'Add',
    'type' => 'primary', // null, 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
    //'size'=>'large', // null, 'large', 'small' or 'mini'
    'icon' => 'plus white',
    'url' => array('create'),
));

$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'state-grid',
    'dataProvider' => $model->search(),
    'type' => 'striped bordered condensed hover',
    //'filter' => $model,
    'columns' => array(
        //'id',
        //'country_id',
        'name',
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
            'template' => '{update} {delete}',
        ),
    ),
    'htmlOptions' => array(
//        'style' => 'width: 300px',
    ),
));
?>
